@import "src/common/styles/base";

.goods-detail-page {
  position: relative;

  button{
    background-color:rgba(0,0,0,0); //可根据自己的背景颜色自行设置
    border-radius: 0rpx;
    padding:0rpx;
    margin:0rpx;
    display: inline-block;
    line-height: 1;
    }

    button::after{ /*button的边框样式是通过::after方式实现的*/
    border:none;
    }

    .button-hover{ /*点击后样式*/
    color:rgba(0,0,0,0);
    background-color: rgb(247, 247, 247);
    }

  .banner-wrapper {
    width: 750px;
    height: 750px;
    position: relative;

    .banner {
      width: 750px;
      height: 750px;

      image {
        width: 750px;
        height: 750px;
        display: block;
      }

      video {
        width: 750px;
        height: 750px;
        display: block;
      }
    }

    .footer-page {
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
      bottom: 80px;
      width: 400px;
      left: 50%;
      transform: translateX(-50%);
      margin: 0 auto;

      .tag {
        font-size: 22px;
        text-align: center;

        right: 25px;
        width: 100px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;

        &:first-child {
          margin-right: 40px;
        }

        background: rgba(255, 255, 255, 0.5);
        color: #666666;

        &__selected {
          color: #ffffff;
          background: red;
        }
      }
    }

    .indicator {
      background: rgba(0, 0, 0, 0.5);
      color: #ffffff;
      text-align: center;
      font-size: 22px;
      position: absolute;
      bottom: 80px;
      right: 25px;
      width: 80px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 20px;
    }
  }

  .detail-image {
    width: 750px;
    display: block;
  }

  .info {
    padding-left: 54px;
    padding-bottom: 24px;
    padding-right: 30px;
    box-shadow: 0px 7px 64px 0px rgba(0, 0, 0, 0.07);
    overflow: hidden;

    .price {
      display: table-cell;
      vertical-align: bottom;
      font-size: 36px;
      font-weight: 600;
      color: $base-color;
      line-height: 50px;
      margin: 16px 0;
      padding-top: 16px;

      .symbol {
        font-size: 24px;
      }

      .old_price {
        color: #999999;
        font-size: 24px;
        text-decoration: line-through;
        margin-left: 30px;
      }
    }

    .goods-name {
      font-size: 30px;
      font-weight: 600;
      color: rgba(51, 51, 51, 1);
      line-height: 42px;
      margin-bottom: 14px;
    }

    .desc {
      font-size: 24px;
      font-weight: 600;
      color: rgba(153, 153, 153, 1);
      line-height: 33px;
      @include ellipsisByLine(2);
    }
  }

  .opt-wrapper {
    margin-top: 20px;
    box-shadow: 0px 7px 64px 0px rgba(0, 0, 0, 0.07);
    padding: 0 53px 0 26px;

    .opt-it {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px;
      border-bottom: 1px solid #eeeeee;
      height: 99px;
      overflow: hidden;

      &:last-child {
        border-bottom: 0;
      }

      .label {
        width: 108px;
        font-size: 30px;
        font-weight: 500;
        color: rgba(67, 67, 67, 1);
        line-height: 42px;
      }

      .value {
        flex: 1;
        overflow: hidden;
        font-size: 28px;
        font-weight: 400;
        color: rgba(51, 51, 51, 1);
        line-height: 40px;
        letter-spacing: 1px;
      }

      .icon {
        width: 10px;
        height: 19px;
        display: block;
      }
    }
  }

  .separate {
    margin: 16px auto;
    text-align: center;

    text {
      font-size: 24px;
      font-weight: 600;
      color: rgba(153, 153, 153, 1);
      line-height: 33px;
    }
  }

  .footer-content {
    height: 99px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 7px 64px 0px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    bottom: 0;
    width: 690px;

    .l {
      display: flex;
      align-items: center;

      .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 20px;


        .icon {
          width: 30px;
          height: 30px;
          display: block;
          margin-bottom: 6px;
        }

        text {
          font-size: 24px;
          font-weight: 400;
          color: rgba(153, 153, 153, 1);
          line-height: 33px;
          letter-spacing: 1px;
        }
      }
    }

    .r {
      .button {
        width: 220px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 1);
        border-radius: 28px;
        font-size: 24px;
        font-weight: 600;
        color: rgba(67, 197, 144, 1);
        border: 1px solid rgba(76, 202, 121, 1);
      }
    }
  }

  .blank {
    height: 150px;
  }

  .sku-content {
    background: #ffffff;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;

    image {
      width: 0;
      height: 0;
      display: block;
    }

    .sub-title {
      font-size: 32px;
      font-weight: 600;
      color: rgba(51, 51, 51, 1);
      line-height: 45px;
    }

    .top {
      padding-left: 30px;
      height: 314px;
      box-shadow: 0px 7px 64px 0px rgba(0, 0, 0, 0.07);
      box-sizing: border-box;
      padding-top: 16px;
      padding-bottom: 33px;

      .sku-info {
        margin-top: 20px;
        display: flex;
        align-items: center;

        .logo {
          width: 220px;
          height: 220px;
          display: block;
          border-radius: 10px;
          margin-right: 24px;
        }

        .sku-info-it {
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          height: 220px;

          .price {
            display: table-cell;
            vertical-align: bottom;
            font-size: 36px;
            font-weight: 600;
            color: $base-color;
            line-height: 50px;

            .symbol {
              font-size: 24px;
            }

            .old_price {
              text-decoration: line-through;
              font-size: 24px;
              font-weight: 600;
              color: #999999;
              line-height: 33px;
              margin-left: 36px;
            }
          }



          .stock {
            font-size: 24px;
            font-weight: 400;
            color: rgba(153, 153, 153, 1);
            line-height: 33px;
          }

          .cate-desc {
            font-size: 24px;
            font-weight: 400;
            color: rgba(51, 51, 51, 1);
            line-height: 33px;
          }
        }
      }
    }

    .tag-wrapper {
      margin-top: 30px;
      padding: 0 30px;

      .tag {
        padding: 0 22px;
        line-height: 55px;
        background: rgba(255, 255, 255, 1);
        border-radius: 10px;
        border: 1px solid #f2f2f2;
        margin-right: 20px;
        margin-top: 20px;
        font-size: 24px;
        font-weight: 400;
        color: rgba(153, 153, 153, 1);
        display: inline-block;
        overflow: hidden;
        width: auto;

        image {
          width: 30px;
          height: 30px;
          display: block;
          margin-right: 4px;
          float: left;
          margin-top: 12px;
        }

        text {
          float: left;
        }

        &__select {
          border-color: $base-color;
          color: $base-color;
        }
      }
    }

    .count {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 30px;
      margin-top: 30px;

      .set-count {
        display: flex;
        align-items: center;

        .minus,
        .add {
          width: 42px;
          height: 42px;
          background: rgba(255, 255, 255, 1);
          box-shadow: 0px 7px 64px 0px rgba(0, 0, 0, 0.07);
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          color: #a3a3a3;
          font-size: 28px;
        }

        .buy-count {
          width: 55px;
          height: 55px;
          box-shadow: 0px 7px 64px 0px rgba(0, 0, 0, 0.07);
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 24px;
          font-weight: 400;
          color: $base-color;
          line-height: 33px;
          margin: 0 13px;
        }
      }
    }

    .footer-btn {
      margin-top: 68px;
      margin-bottom: 34px;
      padding-bottom: env(safe-area-inset-bottom);

      .submit-btn {
        margin: 0 auto;
        width: 687px;
        height: 81px;
        background: linear-gradient(90deg,
            rgba(76, 202, 121, 1) 0%,
            rgba(67, 197, 144, 1) 100%);
        border-radius: 47px;
        font-size: 30px;
        font-weight: 600;
        color: rgba(255, 255, 255, 1);
        line-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;

        &__disabled {
          background: #d8d8d8;
        }
      }
    }
  }
}
